package com.basic.controller;

import com.basic.domain.Admin;
import com.basic.service.IAdminService;
import com.basic.utils.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class LoginController {

    @Autowired
    private IAdminService iAdminService;

    @PostMapping("/login")
    public Response login(@RequestBody Admin admin)
    {
        return iAdminService.checkLogin(admin);
    }
}
